package thread;

public class ThreadInfoDemo {
    public static void main(String[] args) {
        Thread t = new Thread(){
            public void run(){
                String name = this.getName();
                long id = this.getId();
                int priority = this.getPriority();
                System.out.println(name);
                System.out.println(id);
                System.out.println(priority);
                boolean isInterrupted = this.isInterrupted();
                boolean isDaemon = this.isDaemon();
                boolean isAlive = this.isAlive();
                System.out.println(isInterrupted);
                System.out.println(isDaemon);
                System.out.println(isAlive);
            }
        };
        t.start();
    }
}
